package com.c1.client.menu.item;

import com.c1.client.dialog.show.ShowDialog;
import com.c1.client.pan.Pan;
import com.c1.client.pan.Pans;
import com.s.S;

import javax.swing.*;
import java.awt.event.KeyEvent;

public class X_MItem extends MItem {
    @Override
    public KeyStroke keyStroke() {
        return KeyStroke.getKeyStroke(KeyEvent.VK_X, 0);
    }

    @Override
    public String showName() {
        return "特征股";
    }

    @Override
    public void process() {
        Pan currentPan = Pans.me().getCurrentPan();
        String date = currentPan.date(true);
        String content = S.serverData.strategyList(date);
        ShowDialog.me().setTextArea(content);
        ShowDialog.me().setVisible(true);
    }

    @Override
    public boolean needCodePics() {
        return false;
    }
}
